package com.example.logdemo.controller;

import com.example.logdemo.service.DemoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @version 1.0
 * @author: ZackYoung
 * @date: 2021/4/1 10:53
 */
@RestController
public class DemoController {
    @Resource
    DemoService demoService;
    @GetMapping("/test")
    public String test(String content){
        return demoService.login(content);
    }
}
